from langchain.embeddings import OpenAIEmbeddings,CacheBackedEmbeddings
from langchain.storage import LocalFileStore
u_embeddings = OpenAIEmbeddings()
fs = LocalFileStore("./cache/")
cache_embeddings = CacheBackedEmbeddings.from_bytes_store(u_embeddings, fs, namespace=u_embeddings.model)
list(fs.yield_keys())